import 'package:flutter/material.dart';
import 'package:opene/app_theme.dart';
import 'package:opene/app_utils.dart';
import 'package:opene/ui/inventorytransfer/lpnmapping/lpnmappingscreen.dart';
import 'package:opene/ui/lpnphoto/lpnphotomodel.dart';
import 'package:opene/ui/tally/tallymodel.dart';

class InventoryTransferDialog extends StatefulWidget {

  @override
  _InventoryTransferDialogState createState() => _InventoryTransferDialogState();
}

class _InventoryTransferDialogState extends State<InventoryTransferDialog> {

  @override
  Widget build(BuildContext context) {
    return Dialog(
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12.0),
      ),
      child: Padding(
        padding: const EdgeInsets.only(top: 15, left: 15, right: 15,bottom: 15),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            GestureDetector(
              onTap: (){
                Navigator.of(context).pop(1);
              },
              child:  Container(
                height: 35.0,
                margin: const EdgeInsets.only(left: 0, top: 5, right: 0, bottom: 0),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  color: MyAppTheme.white,
                  border: Border.all(
                    color: MyAppTheme.nearlyBlue,
                    width: 1.0,
                  ),
                ),
                child: Text("LPN Mapping", style: MyAppTheme.body2),
              ),
            ),
            GestureDetector(
              onTap: (){
                Navigator.of(context).pop(2);
              },
              child:  Container(
                height: 35.0,
                margin: const EdgeInsets.only(left: 0, top: 5, right: 0, bottom: 0),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  color: MyAppTheme.white,
                  border: Border.all(
                    color: MyAppTheme.nearlyBlue,
                    width: 1.0,
                  ),
                ),
                child: Text("Putaway", style: MyAppTheme.body2),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

class UrgentDialog extends StatefulWidget {

  @override
  _UrgentDialogState createState() => _UrgentDialogState();
}

class _UrgentDialogState extends State<UrgentDialog> {

  @override
  Widget build(BuildContext context) {
    return Dialog(
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12.0),
      ),
      child: Padding(
        padding: const EdgeInsets.only(top: 15, left: 15, right: 15,bottom: 15),
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            GestureDetector(
              onTap: (){
                Navigator.of(context).pop(1);
              },
              child:  Container(
                height: 35.0,
                margin: const EdgeInsets.only(left: 0, top: 5, right: 0, bottom: 0),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  color: MyAppTheme.white,
                  border: Border.all(
                    color: MyAppTheme.nearlyBlue,
                    width: 1.0,
                  ),
                ),
                child: Text("Relocate Outbound", style: MyAppTheme.body2),
              ),
            ),
            GestureDetector(
              onTap: (){
                Navigator.of(context).pop(2);
              },
              child:  Container(
                height: 35.0,
                margin: const EdgeInsets.only(left: 0, top: 5, right: 0, bottom: 0),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  color: MyAppTheme.white,
                  border: Border.all(
                    color: MyAppTheme.nearlyBlue,
                    width: 1.0,
                  ),
                ),
                child: Text("Relocate Inbound", style: MyAppTheme.body2),
              ),
            ),
            GestureDetector(
              onTap: (){
                Navigator.of(context).pop(3);
              },
              child:  Container(
                height: 35.0,
                margin: const EdgeInsets.only(left: 0, top: 5, right: 0, bottom: 0),
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.all(Radius.circular(8.0)),
                  color: MyAppTheme.white,
                  border: Border.all(
                    color: MyAppTheme.nearlyBlue,
                    width: 1.0,
                  ),
                ),
                child: Text("Relocate Putaway", style: MyAppTheme.body2),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
